package com.huangliusong.service.impl;

import com.huangliusong.enums.ResultEnum;

/**
 * 
 * @author kw-hls
 *
 */
public class EasySendException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@SuppressWarnings("unused")
	private Integer code;

	public EasySendException(ResultEnum resultEnum) {
		super(resultEnum.getMessage());

		this.code = resultEnum.getCode();
	}

	public EasySendException(Integer code, String message) {
		super(message);
		this.code = code;
	}
	
}
